// 存放路由映射关系 数据包
// path----component
import DashBoard from '../views/DashBoard'
import JobList from '../views/Job/JobList'
import JobPub from '../views/Job/JobPub'
import CfyList from '../views/Classify/CfyList'
import CfyPub from '../views/Classify/CfyPub'
import {AreaChartOutlined,SlackOutlined,AntDesignOutlined} from '@ant-design/icons'


let adminRoutes = [
    {
        path:'/admin',
        component:DashBoard,
        exact:true,
        title:'数据统计',
        icon:<AreaChartOutlined />
    },
    {
        path:'/admin/job',
        title:'岗位管理',
        icon:<SlackOutlined />,
        children:[
            {
                path:'/admin/job/list',
                component:JobList,
                title:'岗位列表'
            },
            {
                path:'/admin/job/pub',
                component:JobPub,
                title:'岗位发布'
            },
        ]
    },
    {
        path:'/admin/cfy',
        title:'分类管理',
        icon:<AntDesignOutlined />,
        children:[
            {
                path:'/admin/cfy/list',
                component:CfyList,
                title:'分类列表'
            },
            {
                path:'/admin/cfy/pub',
                component:CfyPub,
                title:'分类发布'
            }
        ]
    }
]

export default adminRoutes